home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 19
/
Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso
/
Aminet
/
comm
/
cnet
/
cnet_backup.lha
/
cnetamigabackup
/
CNetBackUp_UPDATE351
< prev
next >
Wrap
Text File
|
1997-04-06
|
4KB
|
96 lines
/**************************************************************************\
$VER: CNet BackUp UPDATE, v3.51 (6-Apr-97) by Dotoran of Frontiers!
\**************************************************************************/
options results;signal on SYNTAX;signal on ERROR;signal on IOERR
a=sourceline(2);parse var a . ", "ver" ("vdate")" .;a=random(,,time("s"))
tr=transmit;se=sendstring;gc=getchar;gu=getuser;gs=getscratch;mg=maygetchar
a="rexxsupport.library";if ~show("l",a) then if ~addlib(a,0,-30) then exit
parse source . . fp .;df=left(fp,max(lastpos('/',fp),lastpos(':',fp)))
tr "f1CNet Amiga BackUp, UPDATE, v3.51n1"
se " This update will scan your `CNetBackUp.cfg' file to see if any of "
se "your existing BackUp Sets use the `BAK' extension. The NEW Clone "
se "BackUp Set needs to use that extension, so if any of your existing sets "
se "use this extension, you'll be asked to enter a NEW extension for that "
tr "BackUp Set.n2Press any key to attempt this update...g1"
call open(f1,df"CNetBackUp.cfg","r")
bt=readln(f1) ; update=0
do i=1 to bt
a=readln(f1) ; parse var a dat.i"|"ext.i"|"txt.i"|"tem.i"|"des.i"|"other.i
if ext.i="BAK" then update=i
end i
dr=readln(f1)
call close(f1)
if update=0 then do
se "n1 It looks as though you are NOT using a BackUp Set with `BAK' as "
se "it's extension, so no update will be necessary. You are now ready to "
tr "start using CNet Amiga BackUp, v3.51!" ; exit ; end
if tem.update="[Not Used]" then do
se "n1 This appears to be a v3.51 formatted `CNetBackUp.cfg' file, as "
tr "it contains a PROPERLY formatted `BAK' setup file!" ; exit ; end
UP1:
tr "n1The following BackUp Set is presently using `BAK' as it's extension:n1"
tr "Description: "txt.update
tr "Destination: "des.update
se "n1Please specify a NEW extension for this BackUp Set: L1305640#"
se ext.update"}I"16384+4+1" 3}";gu 70;a=result
if a=""|a=ext.update then do;tr;signal UP1;end
bad=0;do i=1 to bt;if ext.i=a then bad=1;end i
if bad then do
tr "n1Another BackUp Set is already using that extension!n1"
signal UP1 ; end
if find(upper(dr),upper(des.update))>0 then do
se "n1Make sure your Destination Floppy Disk is in "des.update", then "
tr "press ANY key to continue...g1"
end
if exists(des.update"CNetBackUp_"ext.update".LHA") then do
se "n1Renaming your existing LHA archive using the `"a"' extension..."
address command 'RENAME "'des.update'CNetBackUp_'ext.update'.LHA" "'des.update'CNetBackUp_'a'.LHA"'
tr "ok."
end
if exists("SysData:Log/CNetBackUp_"ext.update) then do
se "n1Renaming your existing LOG using the `"a"' extension..."
address command 'RENAME "SysData:Log/CNetBackUp_'ext.update'" "SysData:Log/CNetBackUp_'a'"'
tr "ok."
end
if exists(df"CNetBackUp."ext.update) then do
se "n1Renaming your existing FileList using the `"a"' extension..."
address command 'RENAME "'df'CNetBackUp.'ext.update'" "'df'CNetBackUp.'a'"'
tr "ok."
end
se "n1Saving updated `CNetBackUp.cfg' file..." ; ext.update=a
call open(f1,df"CNetBackUp.cfg","w")
call writeln(f1,bt)
do i=1 to bt
call writeln(f1,dat.i"|"ext.i"|"txt.i"|"tem.i"|"des.i"|"other.i)
end i
call writeln(f1,dr)
call close(f1)
tr "ok.n1"
se " The update process is complete! You are now ready to start using "
tr "CNet Amiga BackUp, v3.51!";exit
exit
CHECK:;if ARG() & ARG(1)~="###PANIC" then return ARG(1)
getcarrier;if result="TRUE" then if ARG() then return ARG(1);else return
logentry "Lost Carrier!!";bufferflush;exit
SYNTAX:;ERROR:;IOERR:;e1="n1 Error: "rc" ("errortext(rc)")"
e2=" Line: "left(sigl,4)"File:";c="`"fp", "ver"'";e2=e2" "c;tr e1;tr e2
logentry e1;logentry e2;e=strip(translate(sourceline(sigl),"\{",""))
do while e~="";e3="Source: "left(e,37);tr e3;logentry e3;e=substr(e,38);end
bufferflush
/**************************************************************************\
\****************************************** Frontiers BBS (716)/823-9892 **/